package vip.xiaonuo.core.pojo.base.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 工作流业务实体的基础字段
 *
 * @author joe
 * @date 2023/12/26 9:39
 */
@Data
public class ProcessBaseEntity {


    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "流程发起人Id")
    private Long processCreator;

    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "流程发起人")
    private String processCreatorName;

    @Excel(name = "申请编号")
    private String applyNo;

    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "申请时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    @Excel(name = "流程实例ID")
    private String instanceId;

    @Excel(name = "流程处理状态",replace = {"未审批_0", "正在处理_1" , "撤销_2", "驳回_3","结束_4"} )
    private Integer processStatus;

}
